Deleted unused files.
[Sonic-Engine-360.git] / GMS2 / Sonic Engine 360 / objects / SpikeUp_x1 / Step_1.gml
blobbea88c184106a477dd3da1c5dee33fe7a8d84ddd
1 /// Spike collision checks\r
2 \r
3 with (Player)       // Note with all items, the code is used in the items but it runs through inside the Player\r
4 {\r
5     if (action == act_death || point_distance(x, y, other.x, other.y) > 100) continue;  // Don't run through code if Player is dead or too far away\r
6 \r
7     // Set solid if Player is invincible, moving upwards or not above the spike (set non-solid otherwise)\r
8     other.solid = (invincibility != -1 || full_vspeed < 0 || y + mask_radius > other.y - other.offset);\r
9 \r
10     // Only execute hit action if non-solid (the conditions for this are set at the bottom of the code) and a collision is going to occur\r
11     if (other.solid == false && collision_onset(other.id))\r
12     {\r
13         player_hurt();\r
14     }\r
15 }\r